package georeduy.dao;

import georeduy.clases.Imagen;
import georeduy.dao.interfaces.IImagenDAO;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Stateless(name = "ImagenDAO", mappedName = "GeoRed.uy-GeoRed.uy-JPA-ImagenDAO")
public class ImagenDAO implements IImagenDAO
{
    @PersistenceContext(unitName="Geored.uy-JPA")
    private EntityManager em;
 
    public ImagenDAO() { }

    @Override
	public Imagen findImagen(int id) 
    {
		return em.find(Imagen.class, id);
	}
}
